import tkinter.font as font
import tkinter as tk

root=tk.Tk()

font_1=font.Font(family="Helvetica",size=30,weight="normal")
font_2=font.Font(family="Arial",size=50,weight="bold")

but1=tk.Button(root,text="背景色",font=font_1,bg="Blue",foreground="yellow")
but1.grid(row=0,column=0)

Label1=tk.Label(root,text="文字颜色",font=font_2,foreground="orange",bg="pink")
Label1.grid(column=1,row=0)


wrt1=tk.Text(root,width=80,height=60)


from tkinter import messagebox
def test(e):
    messagebox.showinfo("嘻嘻嘻","哈哈哈")
but1.bind("<Button-1>",test)



root.title("演示窗口")
root.geometry("300x150+1000+300")
root.mainloop()


